import BaseEnum from '@/core/utils/BaseEnum'
import BaseEnumValue from '@/core/utils/BaseEnumValue'

class IamAccountPassportPassportTypeEnum extends BaseEnum<number> {
	UNKNOWN = new BaseEnumValue<number>(-1, '未知')
	USERNAME = new BaseEnumValue<number>(0, '账户名通行证')
	PHONE_NUMBER = new BaseEnumValue<number>(1, '手机号')
	WX_MINI_APP_OPENID = new BaseEnumValue<number>(2, '微信小程序openid')
	EMAIL = new BaseEnumValue<number>(3, 'email')
	constructor() {
		super(['UNKNOWN', 'USERNAME', 'PHONE_NUMBER', 'WX_MINI_APP_OPENID', 'EMAIL'])
	}
}

const enumModel = new IamAccountPassportPassportTypeEnum()

export default enumModel
